package com.flying.test.vavrtry;

public class MockService {
    private HttpClient httpClient;

    public MockService(HttpClient httpClient) {
        this.httpClient = httpClient;
    }

    public Response getResponse() {
        try {
            return this.httpClient.call();
        } catch (ClientException e) {
            e.printStackTrace();
            return null;
        }
    }
}
